package core.semantics.util;

import core.types.Type;

public class Variable extends ElementDefinition {

	private Type type;

	public Variable(String name, Type type, int line, int column) {
		super(name, line, column);
		
		this.type = type;
	}
	
	public Variable(Type type, ElementDefinition eDefinition) {
		super(eDefinition);
		
		this.type = type;
	}

	public void setType(Type type) {
		this.type = type;
	}
	
	public Type getType() {
		return type;
	}

	@Override
	public String toString() {
		return this.getName() + ":" + this.getType();
	}

}
